/** When your routing table is too long, you can split it into small modules **/

import Layout from '../../layout'

const personnelManageRouter = {
  path: '/personnel',
  component: Layout,
  redirect: '/personnel/manage',
  name: 'PersonnelManage',
  alwaysShow: true,
  meta: {
    title: '人员管理',
    icon: 'yhgl',
    roles: ['superSysOpsAdmin']
  },
  children: [
    {
      path: 'groupMembers',
      component: () => import('@/pages/index/views/user-manage/GroupMembers.vue'),
      name: 'GroupMembers',
      meta: { title: '公司成员', roles: ['superSysOpsAdmin'], noCache: true }
    },
    {
      path: 'department',
      component: () => import('@/pages/index/views/user-manage/position-manage.vue'),
      name: 'department',
      meta: { title: '岗位管理', roles: ['superSysOpsAdmin', 'orgAdmin', 'superSysOpsAdmin'] }
    }
  ]
}
export default personnelManageRouter
